<template>
  <div class="pay">
    <myhead title="结算"></myhead>
    <div>
      <van-address-list
        v-model="chosenAddressId"
        :list="list"
        default-tag-text="默认"
      />
    </div>
    <div v-if="flag">
      <van-card
        num="1"
        :price="((film.price * 1 * 1) / 10).toFixed(2)"
        :desc="film.name"
        :title="film.sku_info[0].sub_title"
        :thumb="film.sku_info[0].ali_image"
      />
    </div>
    <van-submit-bar
      :price="((film.price * 1 * 1) / 10) * 100"
      button-text="提交订单"
      @submit="onSubmit"
    />
  </div>
</template>
<script>
export default {
  data() {
    return {
      film: {},
      flag: false,
      list:[],
      chosenAddressId:'1'
    };
  },
  mounted() {
    this.$ajax.getshop({ ids: this.$route.query.ids }).then((res) => {
      this.film = res.data.list[0];
      console.log("111", this.film);
      this.flag = true;
    });
    this.$ajax.getsite({phone:this.userInfo.phone}).then(res=>{
        this.list=res[0]
    })
  },
  methods: {
    onSubmit() {},
  },
};
</script>
<style lang="scss" scoped>
.van-address-list__bottom{
    display: none;
}
.van-address-list{
    padding: 0;
}
</style>